/**
 * 
 */
package com.cwnuzj.ffms.model;

import java.util.Date;

/**
 * @author jeff.zheng 账本簿类，记录每天的收入与支出信息
 */
public class AccountBook {

	private String id;
	private AccountBookType type;
	private String subType;
	private Date recordDate;
	private double amount;
	private String paymentMethod;
	private String owner;
	private String description;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public AccountBookType getType() {
		return type;
	}
	
	public String getChineseType() {
		String chineseType = "";
		if (getType().equals(AccountBookType.income)) {
			chineseType = "收入";
		}else if(getType().equals(AccountBookType.payout)) {
			chineseType = "支出";
		}
		return chineseType;
	}

	public void setType(AccountBookType type) {
		this.type = type;
	}

	public String getSubType() {
		return subType;
	}

	public void setSubType(String subType) {
		this.subType = subType;
	}

	public Date getRecordDate() {
		return recordDate;
	}

	public void setRecordDate(Date recordDate) {
		this.recordDate = recordDate;
	}

	public double getAmount() {
		return amount;
	}

	public void setAmount(double amount) {
		this.amount = amount;
	}

	public String getPaymentMethod() {
		return paymentMethod;
	}

	public void setPaymentMethod(String paymentMethod) {
		this.paymentMethod = paymentMethod;
	}

	public String getOwner() {
		return owner;
	}

	public void setOwner(String owner) {
		this.owner = owner;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

}
